package com.market.goods.dao.po;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

/**
 * 商品评论表
 */
@Table(name = "comment_info")
public class CommentInfoPO implements Serializable {
    /**
     * 主键Id
     */
    private Long id;

    /**
     *用户名称
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * skuid
     */
    @Column(name = "sku_id")
    private Long skuId;

    /**
     * 商品id
     */
    @Column(name = "spu_id")
    private Long spuId;

    /**
     * 订单编号
     */
    @Column(name = "order_id")
    private Long orderId;

    /**
     * 评价 1 好评 2 中评 3 差评
     */
    private String appraise;

    /**
     * 评价内容
     */
    @Column(name = "comment_txt")
    private String commentTxt;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     *修改时间
     */
    @Column(name = "operate_time")
    private Date operateTime;

    private static final long serialVersionUID = 1L;

    /**
     * ��ȡ���
     *
     * @return id - ���
     */
    public Long getId() {
        return id;
    }

    /**
     * ���ñ��
     *
     * @param id ���
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * ��ȡ�û�����
     *
     * @return user_id - �û�����
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * �����û�����
     *
     * @param userId �û�����
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * ��ȡskuid
     *
     * @return sku_id - skuid
     */
    public Long getSkuId() {
        return skuId;
    }

    /**
     * ����skuid
     *
     * @param skuId skuid
     */
    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    /**
     * ��ȡ��Ʒid
     *
     * @return spu_id - ��Ʒid
     */
    public Long getSpuId() {
        return spuId;
    }

    /**
     * ������Ʒid
     *
     * @param spuId ��Ʒid
     */
    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    /**
     * ��ȡ�������
     *
     * @return order_id - �������
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * ���ö������
     *
     * @param orderId �������
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * ��ȡ���� 1 ���� 2 ���� 3 ����
     *
     * @return appraise - ���� 1 ���� 2 ���� 3 ����
     */
    public String getAppraise() {
        return appraise;
    }

    /**
     * �������� 1 ���� 2 ���� 3 ����
     *
     * @param appraise ���� 1 ���� 2 ���� 3 ����
     */
    public void setAppraise(String appraise) {
        this.appraise = appraise == null ? null : appraise.trim();
    }

    /**
     * ��ȡ��������
     *
     * @return comment_txt - ��������
     */
    public String getCommentTxt() {
        return commentTxt;
    }

    /**
     * ������������
     *
     * @param commentTxt ��������
     */
    public void setCommentTxt(String commentTxt) {
        this.commentTxt = commentTxt == null ? null : commentTxt.trim();
    }

    /**
     * ��ȡ����ʱ��
     *
     * @return create_time - ����ʱ��
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * ���ô���ʱ��
     *
     * @param createTime ����ʱ��
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * ��ȡ�޸�ʱ��
     *
     * @return operate_time - �޸�ʱ��
     */
    public Date getOperateTime() {
        return operateTime;
    }

    /**
     * �����޸�ʱ��
     *
     * @param operateTime �޸�ʱ��
     */
    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }
}